#ifndef __W25Q64_DRIVE_H
#define __W25Q64_DRIVE_H
#include "w25q64_cmd.h"
#include "stm32f1xx_hal.h"
#include "gpio.h"
void W25Q64_ReadID(uint8_t *MID, uint16_t *DID);
//页编程
void W25Q64_PageProgram(uint32_t addr, uint8_t *buf, uint16_t len);
//扇区擦除
void W25Q64_SectorErase(uint32_t addr);
//块擦除
void W25Q64_BlockErase(uint32_t addr);
//芯片擦除
void W25Q64_ChipErase_NoCheck(void);
//读取数据
void W25Q64_ReadData(uint32_t addr, uint8_t *buf, uint32_t len);
#endif
